package br.com.sigde.framework.modelo;

import java.sql.Connection;
import java.util.Collection;
import br.com.sigde.framework.exception.DAOException;
import br.com.sigde.framework.exception.ServiceException;

public interface DAOInterface<Modelo extends SigdeModelo> {

	Modelo incluir(Modelo dto, Connection conn) throws ServiceException, DAOException;
	void atualizar(Modelo dto, Connection conn)throws ServiceException, DAOException;
	void deletar(Modelo dto, Connection conn)throws ServiceException, DAOException;
	Modelo recuperar(Modelo dto, Connection conn) throws ServiceException, DAOException;
	Collection<Modelo>consultar(Modelo dto, Connection conn)throws ServiceException,DAOException;
	Collection<Modelo>listar(Connection conn)throws ServiceException, DAOException;
}